home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
dev
/
e
/
epp_v1_1.lha
/
EPP
/
PModules
/
skipWhite.e
< prev
next >
Wrap
Text File
|
1993-06-26
|
814b
|
24 lines
OPT TURBO
PROC skipWhite (theString, /* PTR TO STRING */
startPos) /* Char index into theString, passed by value */
DEF length
/* Skips SPACE, TAB, LF, CR. Returns endPos so that */
/* MidStr (someString, theString, startPos, (endPos - startPos)) can be */
/* used in the calling program. */
/* Return of -1 indicates access beyond end of string. */
length := StrLen (theString)
IF startPos >= length THEN RETURN startPos
WHILE (startPos < length) AND
((theString [startPos] = " ") OR
(theString [startPos] = 9) OR /* TAB */
(theString [startPos] = 10) OR /* LF */
(theString [startPos] = 13)) /* CR */ DO INC startPos
ENDPROC startPos
/* skipWhite */